4bad984e33e706320ae17f47e304c739e0271345,portal-impl/src/com/liferay/portlet/documentlibrary/service/impl/DLFileEntryLocalServiceImpl.java,DLFileEntryLocalServiceImpl,cancelCheckOut,#number#number#,236

Before Change


	public void cancelCheckOut(long userId, long fileEntryId)
		throws PortalException, SystemException {

		boolean hasLock = hasFileEntryLock(userId, fileEntryId);

		boolean isCheckedOut = isFileEntryCheckedOut(fileEntryId);

		if (!isCheckedOut) {
			return;
		}

		if (!hasLock) {
			lockFileEntry(userId, fileEntryId);
		}

After Change


			return;
		}

		if (!hasFileEntryLock(userId, fileEntryId)) {
			lockFileEntry(userId, fileEntryId);
		}